import { post } from './axios'

// 申请贷款
export const addAccount = data => {
    return post('/loan/request', data)
}


// 修改贷款信息
export const editAccount = data => {
    return post('/account/edit', data)
}

// 审核贷款申请
export const okAccount = data => {
    return post('/loan/approve', data)
}

// 拒绝贷款申请
export const noAccount = data => {
    return post('/loan/deny', data)
}

// 删除贷款申请
export const deleteAccount = data => {
    return post('/account/delete', data)
}

// 分页获取贷款申请列表
export const listAccountByPage = data => {
    return post('/loan/list', data)
}

// 分页获取贷款申请列表
export const allLoan = data => {
    return post('/loan/all', data)
}
